import React from 'react';
import { NavLink } from 'react-router-dom';
import { useSelector } from 'react-redux'; 
const Index = () => {
    const city = useSelector(state=>state.city);
    return (
        <div>
            <p>home</p>
            <NavLink to='/city'>{city}</NavLink>
        </div>
    );
}

export default Index;
